package cn.com.w.bootdemo;

import cn.com.w.bootdemo.util.Configuration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ReadConfigFileApplication {
    public static void main(String[] args) {

        SpringApplication.run(ReadConfigFileApplication.class, args);

        System.out.println("classpath:"+Thread.currentThread().getContextClassLoader().getResource(""));
        System.out.println("classpath:"+Thread.currentThread().getContextClassLoader().getResource("").getPath());


        String name = Configuration.getConfig("system.name","zxl");

        String noExit = Configuration.getConfig("noExit","hahah");

        String level = Configuration.getConfig("level","level----4");

        System.out.println(name);



    }
}
